cmake_minimum_required(VERSION 3.10)
project(JingJing LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

# 源文件列
set(SRC_FILES
    src/main.cpp
)

add_executable(jingjing ${SRC_FILES})

target_compile_options(jingjing PRIVATE
    $<$<CXX_COMPILER_ID:GNU>:-O2 -s>
    $<$<CXX_COMPILER_ID:MSVC>:/O2 /GL>)

if(MSVC)
    add_compile_options(/utf-8)
endif()
